package Demo16_30.Test23;

/**
 * Created by 14229 on 2020/1/29.
 */
public class Dog extends Animal {
    private int age;

    @Override
    public String toString() {
        return "Dog{" +
                "age=" + age +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Dog() {

    }

    public Dog(String id, String name, int age) {

        super(id, name);
        this.age = age;
    }

    public Dog(int age) {
        this.age = age;
    }
}
